package com.cskaoyan.service;

import com.cskaoyan.bean.*;
import com.cskaoyan.bean.params.AdminInsertBO;
import com.cskaoyan.bean.params.AdminListBO;
import com.cskaoyan.bean.params.BaseParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @USER: cuiweiguo#
 * @DATE: 2022/5/5
 * @TIME: 19:11
 * @PROJECT_NAME: mallproject2
 */
public interface AuthService {
    int queryAdminByUsernameAndPassword(String username, String password);

    AdminListBean queryAdminList(BaseParam baseParam, String username);

    int deleteAdmin(AdminListBO adminListBO);

    AdminCreatePO insertAdmin(AdminInsertBO adminInsertBO);

    AdminUpdatePO updateAdmin(AdminUpdateBO adminUpdateBO);

    int queryAdminIdByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    List<String> getOptionsByUserId(Integer userId);

    AdminInfoBean queryAdminInfoById(Integer userId);


    String queryUsernameById(Integer userId);

    void updateIpByUserId(Integer userId, String ip);
}
